<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

	<ui:composition 
	  xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      template="/templates/templateLayout.xhtml">
      
      <ui:define name="conteudo">        	
	  <link rel="stylesheet" type="text/css" href="./estilos.css"/>
<h:form id="formExcluirMilestone"> 
	<p:commandButton value="Projeto" action="#{projetoBean.viewProjeto}" immediate="true" />
	<p:commandButton value="Atividade" action="#{atividadeBean.consultarAtividade}"/>
 	<p:commandButton value="Milestone" action="#{milestoneBean.consultarMilestone}"/>
 	<p:commandButton value="Membro" action="#{projetoBean.membroProjeto}"/>
 	<p:commandButton value="Log" action="#{projetoBean.consultarLog}"/> 
	<p:panel id="panelExcluirMilestone" style="margin-bottom:20px">
	<p:growl id="messages" />
	<f:facet name="header">
		<h:outputText value="Excluir Milestone" styleClass="outputTextTitulo"/>
	</f:facet>
    	<p:growl id="growl"/>  
        <h:panelGrid columns="4" style="margin-top:20px;">
			<p:outputLabel value="Código do Milestone:" styleClass="outputLabel"/>
			<p:inputText value="#{projetoBean.milestoneSave.idMilestone}" styleClass="inputId" style="text-align:left; float:left;" disabled="true"/> 
			<p:outputLabel value="Descrição:" styleClass="outputLabel" />
        	<p:inputText value="#{projetoBean.milestoneSave.descricao}" styleClass="inputDescricao" style="text-align:left; float:left;" disabled="true"/> 
        </h:panelGrid>
        <h:panelGrid columns="2">
			<p:outputLabel value="Data:" style="font-size:14px;"/>
        	<p:inputMask value="#{projetoBean.milestoneSave.dtFinal}" mask="99/99/9999" styleClass="inputData" disabled="true">
        		<f:convertDateTime dateStyle="medium"/>
        	</p:inputMask> 				
		</h:panelGrid> 
		</p:panel>  
    <p:commandButton value="Excluir"  onclick="confirmationExcluirMilestone.show()" type="button" style="margin-right:20px; margin-left:10px;" /> 
	<p:commandButton value="Cancelar" onclick="dialogExcluirMilestone.close()" style="margin-right:20px;" />

    
    <p:confirmDialog id="confirmDialogExcluirMilestone" message="Excluir Milestone?"  
                      header="Confirmar exclusão" widgetVar="confirmationExcluirMilestone" appendToBody="true">  
                  
        <p:commandButton id="cbconfirmExclusaoMilestone" value="Excluir" process="@this" oncomplete="confirmationExcluirMilestone.hide()"  
                    action="#{projetoBean.deleteMilestone}"  />  
        <p:commandButton id="cbCancelarExcluirMilestone" value="Cancelar" onclick="confirmationExcluirMilestone.hide()" process="@this" type="button" />   
                  
    </p:confirmDialog>
</h:form>  	
</ui:define>
</ui:composition>
